def get_word_frequency(path):
    word_dict = {}
    with open(path, 'r', encoding='utf-8') as f:
        corpus = f.readlines()

    if corpus in not None:    
        word_list = corpus.split()
    for word in word_list:
        word_dict[word] = word_dict.get(word, 0) + 1
    
    word_freq = sorted(word_dict.items(), key = lambda item:item[1])
    print(word_freq[:10])